/*
 * Copyright 2002-2017 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.deservel.wxopen.model.message.response;


import com.deservel.wxopen.model.message.base.Article;
import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.util.List;

/**
 * 图文消息
 *
 * @author DeserveL
 * @date 2017/7/4 10:28
 * @since 1.0.0
 */
@XStreamAlias("xml")
public class NewsResponse extends BaseResponse {

    //图文消息个数，限制为8条以内
    private int ArticleCount;
    //多条图文消息信息，默认第一个item为大图,注意，如果图文数超过8，则将会无响应
    private List<Article> Articles;

    public int getArticleCount() {
        return ArticleCount;
    }

    public void setArticleCount(int articleCount) {
        ArticleCount = articleCount;
    }

    public List<Article> getArticles() {
        return Articles;
    }

    public void setArticles(List<Article> articles) {
        Articles = articles;
    }
}
